package collection;

import java.util.HashSet;
import java.util.Iterator;

public class HashSetEx {
	
	public static void main(String[] args) {
		HashSet<Member> hs = new HashSet<Member>();
		
		hs.add(new Member("Jint","1234"));
		hs.add(new Member("Lee","5678"));
		hs.add(new Member("Hong","5689"));
		hs.add(new Member("Sung","4444"));
		hs.add(new Member("Jint","1234"));
		
		Iterator<Member> it = hs.iterator();
		while(it.hasNext()){
			Member mem=it.next();
			System.out.println(mem.getId() + "\t" + mem.getPwd());
			System.out.println(mem.hashCode());			
		}		
	}
}
